/**
 * 检查页面权限
 */
function CheckPermissions() {
    console.log('------检查页面权限------');
    let url = window.location.pathname + '.htm';
    CallAjaxGetNoParam(url, CheckPermissionsSuc, null, null, false);
}

function CheckPermissionsSuc(data) {
    console.log(data);
}

var resetMsg;

/**
 * 重置缓存
 */
function resetRedis() {
    console.log('------重置缓存-----');
    let url = "/config/security/reset";
    CallAjaxGetNoParam(url, resetRedisSuc, resetRedisErr);
    resetMsg = MessageLoading();
}

function resetRedisSuc(data) {
    console.log(data);
    CloseMessageLoading(resetMsg);
    MessageInfo(data.obj);
}

function resetRedisErr(data) {
    console.log(data);
    CloseMessageLoading(resetMsg);
    MessageError("重置失败");
}
